import axios from '@/axios'
export const getImageClassListAPI = (page) => {
  return axios.get('/admin/image_class/' + page)
}

// 增加图库分类
export const addImageClassAPI = (data) => {
  return axios.post('/admin/image_class', data)
}

// 修改图库分类
export const updateImageClassAPI = (id, data) => {
  return axios.post(`/admin/image_class/${id}`, data)
}

// 删除图库分类
export const deleteImageClassAPI = (id) => {
  return axios.post(`/admin/image_class/${id}/delete`)
}
